package com.trkj.pojos;

import java.io.Serializable;
import javax.persistence.*;

import com.alibaba.fastjson.annotation.JSONField;

import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the CC_PATIENT database table.
 * 
 */
@Entity
@Table(name="CC_PATIENT")
@NamedQuery(name="CcPatient.findAll", query="SELECT c FROM CcPatient c")
public class CcPatient implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(allocationSize=1,name="CC_PATIENT_PATIENTID_GENERATOR", sequenceName="SEQHIS")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="CC_PATIENT_PATIENTID_GENERATOR")
	private long patientid;

	private String address;

	private BigDecimal icid;

	private String paage;

	private BigDecimal paberthid;

	private BigDecimal padoctorid;

	private String pcard;

	private BigDecimal pcaseid;

	private String pname;

	private BigDecimal pofficesid;

	@Temporal(TemporalType.DATE)
	@JSONField(format="yyyy/MM/dd")
	private Date ppdate;

	private String premarks;

	private String psex;

	private String pweight;

	private String tel;

	private String tname;

	public CcPatient() {
	}

	public long getPatientid() {
		return this.patientid;
	}

	public void setPatientid(long patientid) {
		this.patientid = patientid;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public BigDecimal getIcid() {
		return this.icid;
	}

	public void setIcid(BigDecimal icid) {
		this.icid = icid;
	}

	public String getPaage() {
		return this.paage;
	}

	public void setPaage(String paage) {
		this.paage = paage;
	}

	public BigDecimal getPaberthid() {
		return this.paberthid;
	}

	public void setPaberthid(BigDecimal paberthid) {
		this.paberthid = paberthid;
	}

	public BigDecimal getPadoctorid() {
		return this.padoctorid;
	}

	public void setPadoctorid(BigDecimal padoctorid) {
		this.padoctorid = padoctorid;
	}

	public String getPcard() {
		return this.pcard;
	}

	public void setPcard(String pcard) {
		this.pcard = pcard;
	}

	public BigDecimal getPcaseid() {
		return this.pcaseid;
	}

	public void setPcaseid(BigDecimal pcaseid) {
		this.pcaseid = pcaseid;
	}

	public String getPname() {
		return this.pname;
	}

	public void setPname(String pname) {
		this.pname = pname;
	}

	public BigDecimal getPofficesid() {
		return this.pofficesid;
	}

	public void setPofficesid(BigDecimal pofficesid) {
		this.pofficesid = pofficesid;
	}

	public Date getPpdate() {
		return this.ppdate;
	}

	public void setPpdate(Date ppdate) {
		this.ppdate = ppdate;
	}

	public String getPremarks() {
		return this.premarks;
	}

	public void setPremarks(String premarks) {
		this.premarks = premarks;
	}

	public String getPsex() {
		return this.psex;
	}

	public void setPsex(String psex) {
		this.psex = psex;
	}

	public String getPweight() {
		return this.pweight;
	}

	public void setPweight(String pweight) {
		this.pweight = pweight;
	}

	public String getTel() {
		return this.tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getTname() {
		return this.tname;
	}

	public void setTname(String tname) {
		this.tname = tname;
	}

}